package People;

import course.Course;

public class Teacher extends People {
    private Course[] teachCourse;
    public Teacher(){}
    public Teacher(int ID, String name, String gender) {
        this.id = ID;
        this.name = name;
        this.gender = gender;
        this.teachCourse = new Course[0];
    }
    public void addTeachCourse(Course course) {
        for(int i=0;i<this.teachCourse.length;i++){
            if(teachCourse[i]==null){
                teachCourse[i]=course;
                System.out.print("开课成功");
                break;
            }//教师开设课程
        }
    }
}